import request from '@/utils/request'

// 查询人才政策与活动信息列表
export function listPolicy(query) {
  return request({
    url: '/event/policy/list',
    method: 'get',
    params: query
  })
}

// 查询人才政策与活动信息详细
export function getPolicy(id) {
  return request({
    url: '/event/policy/' + id,
    method: 'get'
  })
}

// 新增人才政策与活动信息
export function addPolicy(data) {
  return request({
    url: '/event/policy',
    method: 'post',
    data: data
  })
}

// 修改人才政策与活动信息
export function updatePolicy(data) {
  return request({
    url: '/event/policy',
    method: 'put',
    data: data
  })
}

// 删除人才政策与活动信息
export function delPolicy(id) {
  return request({
    url: '/event/policy/' + id,
    method: 'delete'
  })
}
